sbin_PROGRAMS=dolphin

dolphin_LDADD=$(LUALIBS) -lm -lssl -lcrypto
sysconf_DATA=dolphin.conf

src=server.c \
	server.h \
	http.h \
	http.c \
	header.h \
	header.c \
	common.h \
	config.h \
	conf.h \
	conf.c \
	list.h \
	rfc1123.c \
	array.h \
	array.c \
	buffer.h \
	buffer.c \
	lua_api.h \
	cache_dir.h \
	cache_dir.c \
	log.h \
	log.c \
	mempool.h \
	mempool.c \
	globals.h \
	hashtable.h \
	hashtable.c \
	cache_file.h \
	cache_file.c \
	md5.h \
	md5.c \
	thread.h \
	thread.c \
	sock.h \
	sock.c \
	queue.h \
	queue.c \
	cache_control.h \
	cache_control.c \
	cache_index.h \
	cache_index.c \
	globals.c \
	iniparser.h \
	iniparser.c \
	dictionary.h \
	dictionary.c \
	ini_api.h \
	sock_event.h \
	sock_kqueue.h \
	sock_event.c \
	sock_kqueue.c

DEFS+=-DDEFAULT_CONFIG_FILE=\"$(prefix)/etc/dolphin.conf\" -D_GNU_SOURCE -D_REENTRANT
AM_CFLAGS=$(CFLAGS) -Wall -fno-strict-aliasing
dolphin_SOURCES=$(src)

conf.o: conf_pre.h

conf_pre.h: autogen_conf_pre_h.pl
	$(SHELL) chmod +x autogen_conf_pre_h.pl || ./autogen_conf_pre_h.pl
